package com.icehand.canal.client;

import com.google.common.collect.Maps;
import com.icehand.canal.annotation.HandlePoint;
import lombok.Data;

import java.lang.reflect.Method;
import java.util.Map;

/**
 * @author icehand
 */
@Data
public class Point {
    private Object target;
    private Map<Method, HandlePoint> invokeMap = Maps.newHashMap();

    public Point(Object target, Method method, HandlePoint handlePoint) {
        this.target = target;
        this.invokeMap.put(method,handlePoint);
    }
}
